package com.marver.boot.user;

import com.marver.boot.user.bean.Category;
import com.marver.boot.user.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author marver
 * @Description
 * @date 2019/4/12 17:05
 */
@RestController
public class CategoryController {
    @Autowired
    private CategoryService categoryService;

    @RequestMapping("/index")
    public void getCategory(){
        Category category = categoryService.getCategory();
        System.out.println(category);
    }
}
